const copyProperties = function(vo, bean) {
  for (let item in bean) {
    if (vo[item] || vo[item] === 0) {
      bean[item] = vo[item]
    }
  }
}
const copyBean = function(bean) {
  let clone = {}
  if (bean instanceof Array) {
    clone = []
  }
  for (let item in bean) {
    if (bean[item] || bean[item] === 0) {
      clone[item] = bean[item]
    }
  }
  return clone
}
export default {
  copyProperties,
  copyBean
}
